Generalize fix for crash due to non-contiguous EMACS_INT (Bug#10780).
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Feb 2012 19:39:42 +0000 (11:39 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Feb 2012 19:39:42 +0000 (11:39 -0800)
commitcdecb2652c77d4c8e3572811b5da5dda464ec8db
treecc4ff09051576ece916d77e7c9795cd6f9093e51
parent7b59b27a17fa2275d27837efac27310f99449b6d
Generalize fix for crash due to non-contiguous EMACS_INT (Bug#10780).

Suggested by Stefan Monnier in
<http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00692.html>.
* alloc.c (widen_to_Lisp_Object): New static function.
(mark_memory): Also mark Lisp_Objects by fetching pointer words
and widening them to Lisp_Objects.  This would work even if
USE_LSB_TAG is defined and wide integers are used, which might
happen in a future version of Emacs.
src/ChangeLog
src/alloc.c
src/lisp.h